package com.guilin.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.guilin.common.annotation.Excel;
import com.guilin.common.core.domain.BaseEntity;

/**
 * 题目对象 survey_question
 * 
 * @author xiaoqi
 * @date 2025-06-24
 */
public class SurveyQuestion extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    private Long id;

    /** 所属问卷 */
    @Excel(name = "所属问卷")
    private Long questionnaireId;

    /** 试题名称 */
    @Excel(name = "试题名称")
    private String questionText;

    /** 选项 */
    @Excel(name = "选项")
    private String options;

    /** 试题类型 */
    @Excel(name = "试题类型")
    private Long questionType;

    /** 试题排序 */
    @Excel(name = "试题排序")
    private Long sortOrder;

    /** 是否必填(0-否,1-是) */
    @Excel(name = "是否必填(0-否,1-是)")
    private Long isRequired;

    /** 输入类型 */
    @Excel(name = "输入类型")
    private Long inputType;

    /** 最大输入长度 */
    @Excel(name = "最大输入长度")
    private Long maxLength;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setQuestionnaireId(Long questionnaireId) 
    {
        this.questionnaireId = questionnaireId;
    }

    public Long getQuestionnaireId() 
    {
        return questionnaireId;
    }

    public void setQuestionText(String questionText) 
    {
        this.questionText = questionText;
    }

    public String getQuestionText() 
    {
        return questionText;
    }

    public void setOptions(String options) 
    {
        this.options = options;
    }

    public String getOptions() 
    {
        return options;
    }

    public void setQuestionType(Long questionType) 
    {
        this.questionType = questionType;
    }

    public Long getQuestionType() 
    {
        return questionType;
    }

    public void setSortOrder(Long sortOrder) 
    {
        this.sortOrder = sortOrder;
    }

    public Long getSortOrder() 
    {
        return sortOrder;
    }

    public void setIsRequired(Long isRequired) 
    {
        this.isRequired = isRequired;
    }

    public Long getIsRequired() 
    {
        return isRequired;
    }

    public void setInputType(Long inputType) 
    {
        this.inputType = inputType;
    }

    public Long getInputType() 
    {
        return inputType;
    }

    public void setMaxLength(Long maxLength) 
    {
        this.maxLength = maxLength;
    }

    public Long getMaxLength() 
    {
        return maxLength;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("questionnaireId", getQuestionnaireId())
            .append("questionText", getQuestionText())
            .append("options", getOptions())
            .append("questionType", getQuestionType())
            .append("sortOrder", getSortOrder())
            .append("isRequired", getIsRequired())
            .append("inputType", getInputType())
            .append("maxLength", getMaxLength())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
